// 父传子
function Son (props) {
    // props: 接收父组件传递过来的参数
    console.log(props);
    return (
      <div>
        <h1>this is son: { props.name }</h1>
      </div>
    )
  }
  
  function App () {
    const name = "this is App";
    return (
      <div>
        <Son name={ name }></Son>
      </div>
    )
  }
  export default App;